package com.example.noobpackage.ui.proxypackage

import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.noobpackage.logic.model.AcceptedPackage
import com.example.noobpackage.logic.repository.MarketRepository
import kotlinx.coroutines.launch

class ProxyPackageViewModel : ViewModel() {
    fun updateList(account: Long) {
        viewModelScope.launch {
            MarketRepository.updateAcceptedPackages(account)
        }
    }

    fun getList() = MarketRepository.acceptedPackage
}